<%@ page import="ccfc.Roast" %>



<div class="fieldcontain ${hasErrors(bean: roastInstance, field: 'roastDate', 'error')} required">
	<label for="roastDate">
		<g:message code="roast.roastDate.label" default="Roast Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="roastDate" precision="day"  value="${roastInstance?.roastDate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: roastInstance, field: 'location', 'error')} required">
	<label for="location">
		<g:message code="roast.location.label" default="Location" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="location" name="location.id" from="${ccfc.RoastLocation.list()}" optionKey="id" required="" value="${roastInstance?.location?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: roastInstance, field: 'roastee', 'error')} required">
	<label for="roastee">
		<g:message code="roast.roastee.label" default="Roastee" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="roastee" name="roastee.id" from="${ccfc.Friar.list()}" optionKey="id" required="" value="${roastInstance?.roastee?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: roastInstance, field: 'title', 'error')} ">
	<label for="title">
		<g:message code="roast.title.label" default="Title" />
		
	</label>
	<g:textField name="title" value="${roastInstance?.title}"/>
</div>

